package com.joy.ogljoy_01;

import android.app.Activity;
import android.content.Context;
import android.opengl.GLSurfaceView;

public class OpenGLView extends GLSurfaceView {

	public static Activity app;
	private OpenGLRenderer mRenderer;
	
	public OpenGLView(Context context) {
       super(context);
 
       app = (Activity) context;
       mRenderer = new OpenGLRenderer();
       setRenderer(mRenderer);
	}

	public void desdroy() {
		mRenderer.destroy();
	}
}
